package com.mes.cloud.api.dto.request.organization;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * 组织表
 *
 * @author xy
 * @version 2019-07-30 10:10:54
 * @email yuan.xue3@pactera.com
 */
@Data
public class SysOrganizationPageRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前页", required = true)
    @NotNull(message = "currentPage不能为空")
    private int currentPage;

    @ApiModelProperty(value = "每页条数", required = true)
    @NotNull(message = "pageSize不能为空")
    private int pageSize;

    @ApiModelProperty(value = "排序", required = false)
    private String orderBy;

    @ApiModelProperty(value = "主键ID", required = false)
    private String id;

    @ApiModelProperty(value = "组织编码", required = false)
    private String code;

    @ApiModelProperty(value = "组织名称", required = false)
    private String name;

    @ApiModelProperty(value = "组织别名", required = false)
    private String aliasName;

    @ApiModelProperty(value = "SF编码", required = false)
    private String sfCode;

    @ApiModelProperty(value = "组织类型", required = false)
    private String type;

    @ApiModelProperty(value = "组织层级", required = false)
    private String level;

    @ApiModelProperty(value = "组织标识", required = false)
    private String flag;

    @ApiModelProperty(value = "上级组织", required = false)
    private String parentId;

    @ApiModelProperty(value = "详细地址", required = false)
    private String addressDetail;

    @ApiModelProperty(value = "成本中心编码", required = false)
    private String costCode;

    @ApiModelProperty(value = "组织备注", required = false)
    private String remark;

    @ApiModelProperty(value = "状态(0：禁用，1：启用)", required = false)
    private String enableFlag;

    @ApiModelProperty(value = "删除标记，1：删除，0：未删除", required = false)
    private String delFlag;

    @ApiModelProperty(value = "名称/编码", required = false)
    private String queryString;

    @ApiModelProperty(value = "创建时间", required = false)
    private Date createTime;

    @ApiModelProperty(value = "员工id", required = false)
    private String employeeId;

    @ApiModelProperty(value = "更新时间", required = false)
    private Date updateTime;
}
